package ThreadPool.jike.demo43;

/**
 * @author oyz
 * 这个类的作用就是将对象 value 包装成带版本号的对象
 */
public final class VersionedRef<T> {

    private T value;

    private long version;

    public VersionedRef(T value, long version) {
        this.value = value;
        this.version = version;
    }

    public T getValue() {
        return value;
    }

    public long getVersion() {
        return version;
    }
}
